<?php
/**
 * Created by PhpStorm.
 * User: dx
 * Date: 16/5/5
 * Time: 下午3:09
 */
$api_service_path = __DIR__ . "/../../../api/";
ob_start();
require_once($api_service_path . "public/index.php");
ob_end_clean();

// $orders=Orders::whereIn('status',array(1018,1017,1217,1317,1417))->get();
// foreach ($orders  as $_o) {
// 	Orders::inverseOrder($_o->order_id);
// 	Log::info($_o->order_id." 反算完毕");
// 	echo $_o->order_id." 反算完毕";
// }
// Orders::inverseOrder(14827426453560);
// 
// Gongyingshang::getPriceStorage(array(1,2,3),array(1,2,3),1,0);


// Gongyingshang::getPriceStorage(array(2084802,2084779,2084784),array(1,2,3),1,1);
Users::checkServiceCardPack('12121212121',7,array(array("pack_id"=>2,"num"=>1),array("pack_id"=>6,"num"=>2)),"京A12121","亚总点","2018-12-12 12:12:14",0);